package work01;

public class WeekDemo2 {
    public void doWhat(Week week) {
        switch (week) {
            case MON:
            case TUE:
            case WED:
            case THU:
            case FRI:
                System.out.println("工作日，努力写代码！");
                break;
            case SAT:
                System.out.println("星期六休息看电影");
                break;
            case SUN:
                System.out.println("星期天！打篮球");
                break;
            default:
                System.out.println("地球上一个星期只有七天！！！");
        }
    }

    public static void main(String[] args) {
        WeekDemo2 wd = new WeekDemo2();
        wd.doWhat(Week.FRI);
    }
}
